﻿/*加减控制按钮*/
.input-nud input[type="number"]::-webkit-outer-spin-button,
.input-nud input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.input-nud {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    width: 130px;
    height: 35px;
    border: 1px solid #ccc;
}

    .input-nud > * {
        display: block;
        outline: none;
        border-style: none;
        height: 100%;
    }

    .input-nud button {
        display: block;
        width: 40px;
        width: 25%;
        font-size: 1.2rem;
        color: #aaa;
        background-color: white;
        cursor: pointer;
    }

        .input-nud button:hover {
            color: red;
        }

    .input-nud input {
        -moz-appearance: textfield;
        text-align: center;
        width: 50%;
        border-left: 1px solid #ccc;
        border-right: 1px solid #ccc;
        box-sizing: border-box;
    }


/*开关滑块*/
.slider-label {
    width: 70px;
    height: 30px;
    background-color: whitesmoke;
    border-radius: 30px;
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    transition: all 1s;
    box-shadow: inset 2px 2px 2px #aaa;
}

    .slider-label::before {
        content: "";
        display: block;
        width: 25px;
        height: 25px;
        background-color: whitesmoke;
        border-radius: 50%;
        display: inline-block;
        position: relative;
        left: 3px;
        box-shadow: 1px 0px 4px rgb(44, 43, 43);
        transition: left 0.5s;
        box-sizing: border-box;
    }

    .slider-label:hover::before {
        border: 2px solid greenyellow;
    }

.slider-input {
    display: none;
}

    .slider-input:checked + label {
        background-color: deepskyblue;
        box-shadow: inset 2px 2px 2px rgb(72, 137, 180);
    }

        .slider-input:checked + label::before {
            left: calc(100% - 30px);
        }


/*进度条*/
.progbar {
    display: block;
    width: 100%;
    height: 10px;
    background-color: #ccc;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

    .progbar > .value {
        display: block;
        background-color: rgb(253, 179, 28);
        height: 100%;
        transition: width 0.5s;
    }


/*
    <div class="circleProgbar">
        <div class="wrapper right">
            <div class="progress rightcircle"></div>
        </div>
        <div class="wrapper left">
            <div class="progress leftcircle"></div>
        </div>
    </div>
*/

/*圆形进度条*/
.circleProgbar {
    width: 80px;
    height: 80px;
    position: relative;
    cursor: default;
}

    .circleProgbar .wrapper {
        width: 50%;
        height: 100%;
        position: absolute;
        top: 0;
        overflow: hidden;
        box-sizing: border-box;
    }

    .circleProgbar > .right {
        right: 0;
    }

    .circleProgbar > .left {
        left: 0;
    }

    .circleProgbar .progress {
        box-sizing: border-box;
        width: calc(100% * 2);
        height: 100%;
        border-radius: 50%;
        position: absolute;
        top: 0;
        -webkit-transform: rotate(45deg);
        border-width: 15px;
        border-style: solid;
    }

    .circleProgbar .rightcircle {
        right: 0;
    }

    .circleProgbar .leftcircle {
        left: 1px;
        z-index: 1;
    }

    .circleProgbar .content {
        height: 100%;
        width: 100%;
        position: absolute;
        left: 0;
        top: 0;
        display: flex;
        justify-content: center;
        align-items: stretch;
        flex-direction: column;
        z-index: 2;
    }

        .circleProgbar .content p {
            text-align: center;
        }

        .circleProgbar .content .title {
            font-size: 1rem;
            font-weight: bold;
            color: #6e6e6e;
        }

        .circleProgbar .content .value {
            font-size: 0.8rem;
        }
